using System.Data;

namespace Lzfy_His_Service.Services
{
    /// <summary>
    /// 弹性数据库连接工厂接口
    /// </summary>
    public interface IResilientDbConnectionFactory
    {
        /// <summary>
        /// 创建数据库连接
        /// </summary>
        IDbConnection CreateConnection();

        /// <summary>
        /// 创建并打开数据库连接（带重试机制）
        /// </summary>
        Task<IDbConnection> CreateAndOpenConnectionAsync();
    }
}